﻿using ChBusiness.PubInfo;
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Xnjc_ts_guanli : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void s_save_Click(object sender, EventArgs e)
    {
        string tsman = this.s_tsman.Value.ToString();
        string tstime = this.submitDate.Value.ToString();
        string tsobject = this.s_tsIId.Value.ToString();
        string tsan = this.s_tsiid1.Value.ToString();

        TsInfoManager tsinfo = new TsInfoManager();
        if (tsinfo.AddTs(tsman,tstime,tsan,tsobject,"") != 0)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "ok", "<script>alert('保存成功')</script>");
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "ok", "<script>alert('输入数据异常，请检查后重试!')</script>");
        }
    }
}
